package behavioral.chain_of_responsibility.impl2;

/**
 * @ClassName: AbstractHandler
 * @Description: 抽象处理者（Handler）角色：定义一个处理请求的接口，包含抽象处理方法和一个后继连接。
 * @Author: liu-hao
 * @Date: 2023-04-09 16:25
 * @Version: 1.0
 **/
public abstract class AbstractHandler {
    protected AbstractHandler successor;

    public void setSuccessor(AbstractHandler successor) {
        this.successor = successor;
    }

    public abstract boolean handler();
}
